<!DOCTYPE html>
<html lang="en"><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>金贵银业</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_SITE_URL;?>/wap/css/reset.css">
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_SITE_URL;?>/wap/css/main.css">
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_SITE_URL;?>/wap/css/child.css">
    <script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jsAddress.js"></script>

    <script>
        //地址验证
        function checkAddress() {
            var fm=document.check;
            var pattern = /^1[34578]\d{9}$/;
            var re = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/;
            var str = "市辖区";

            if(fm.true_name.value==''){
                alert('请输入用户名');
                fm.true_name.focus();
                return false;
            }
            if (!pattern.test(fm.mob_phone.value)) {
                alert('请输入正确的手机号码');
                fm.mob_phone.focus();
                return false;
            }
            if(!(fm.tel_phone.value=='')){
                if(!re.test(fm.tel_phone.value)){
                    alert('请输入正确的电话号码');
                    fm.tel_phone.focus();
                    return false;
                }
            }
            if(str.indexOf(fm.region.value)!=-1){
                alert('请输入正确的区县');
                fm.region.focus();
                return false;
            }
            if(fm.vaddress.value==''){
                alert('请输入街道名称');
                fm.vaddress.focus();
                return false;
            }
            return true;
        }
    </script>

</head>
<body>
<header id="header"><div class="header-wrap"><a href="javascript:history.back();" class="header-back"><span>返回</span></a><a href="javascript:void(0)" id="btn-opera" class="i-main-opera"><span></span></a></div></header>
<div class="buy_step1">
    <form method="post"  name="check" action="/mobile/index.php?act=member_index&op=member_address_mobile">
    <div class="buys1-cnt buys1-address-cnt">
        <ul class="buys1-hide-list buys-ycnt">
            <li id="addresslist">
                <label class="new-address clr-d94">
                    <input name="address"  class="address-radio" type="checkbox" value="1">
                    使用新的地址信息作为默认地址
                </label>
                <div class="invoice-addcnt">
                    <div class="iadd-title">
                        收货人信息：
                    </div>
                    <div>
                        <p class="iadd-ip">姓名：<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <input class="n-input h22 wp100" name="true_name" id="vtrue_name" type="text">
                        </p>
                        <p class="iadd-ip"> 手机号码:<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <input class="n-input h22 wp100" name="mob_phone" id="vmob_phone" type="text">
                        </p>
                        <p class="iadd-ip"> 电话号码:</p>
                        <p class="iadd-ip">
                            <input class="n-input h22 wp100" name="tel_phone" id="vtel_phone" type="text">
                        </p>
                    </div>
                    <div class="iadd-title"> 地址信息：</div>
                    <div>
                        <p class="iadd-ip">省份：<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <select class="select-30" name="prov" id="cmbProvince">
                                <option selected="selected" value="">请选择...</option>
                            </select>
                        </p>
                        <p class="iadd-ip">城市：<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <select class="select-30" name="city" id="cmbCity">
                                <option selected="selected" value="">请选择...</option>
                            </select>
                        </p>
                        <p class="iadd-ip"> 区县：<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <select class="select-30" name="region" id="cmbArea">
                                <option selected="selected" value="">请选择...</option>
                            </select>
                        </p>
                        <p class="iadd-ip"> 街道：<span class="opera-tips">(*必填)</span></p>
                        <p class="iadd-ip">
                            <input class="n-input h22 wp100" name="vaddress" id="vaddress" type="text">
                        </p>
                    </div>
                </div>
                <div class="error-tips"></div>
            </li>
            <li class="invoice_opeara">
                <input onclick="return checkAddress();" type="submit"  value="保存地址信息" class="">
            </li>
        </ul>

        <script type="text/javascript">
            addressInit('cmbProvince', 'cmbCity', 'cmbArea', '陕西', '宝鸡市', '');
            addressInit('Select1', 'Select2', 'Select3');
        </script>

    </div>
    </form>

    </div>
</div>
<div id="footer"></div>


<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/config.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/zepto.min.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/template.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/common.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/simple-plugin.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/tmpl/common-top.js"></script>
<script type="text/javascript" src="<?php echo BASE_SITE_URL;?>/wap/js/tmpl/footer.js"></script>
<!--<script type="text/javascript" src="--><?php //echo BASE_SITE_URL;?><!--/wap/js/tmpl/buy_step1.js"></script>-->

<script type="text/javascript">
    addressInit('cmbProvince', 'cmbCity', 'cmbArea', '', '', '');
    addressInit('Select1', 'Select2', 'Select3');
</script>

</body>
</html>